package yf.mall.enums;

import lombok.Getter;


/**
 * @author hxf
 * @email 505860922@qq.com
 * @date Sun Sep 29 11:12:45 CST 2019
 */
@Getter
public enum MallGoodsSaleTypeEnum {


    RETAIL(0, "分享有利" ),


    AGENT(1, "代理有利" );


    int index;
    String value;

    MallGoodsSaleTypeEnum(int index, String value) {
        this.index = index;
        this.value = value;
    }

    public static String indexOf(int idx) {
        return MallGoodsSaleTypeEnum.values()[idx].getValue();
    }

}
